#ifndef LOGINFORM_H
#define LOGINFORM_H

#include <QDebug>
#include <QMessageBox>
#include <QWidget>

#include "loginrequest.h"
#include "asynctask.h"

namespace Ui {
class LoginForm;
}

class LoginForm : public QWidget
{
    Q_OBJECT
    
public:
    explicit LoginForm(QWidget *parent = 0);
    ~LoginForm();

public slots:
    void on_exitButton_clicked();
    void on_loginButton_clicked();
    void error(QString);
    void loginRequestResponses(QString, QString);

signals:
    void exitApplicationSignal();
    void loginSuccessful(QString);

private:
    Ui::LoginForm *ui;
    LoginRequest *request_;
    AsyncTask *task_;
};

#endif // LOGINFORM_H
